package com._复习;

public class Test03 {
    public static void main(String[] args) {
        int[] arr = {23, 32, 56, 65};
        int[] arr1 = {23, 32, 56, 70};

        boolean a = compare(arr, arr1);
        System.out.println(a);
    }
    public static boolean compare(int[] arr, int[] arr1) {
        if (arr.length != arr1.length) {
            return false;
        }
        for (int i = 0; i < arr.length; i++)
            if (arr[i] == arr1[i]) {
                continue;
            } else {
                return false;
            }
            return true;
    }
}
